<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- 引入标签库-->
<%@ include file="/pages/inc/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>附件上传下载</title>
</head>
<body> 
<div>
	<div id="<c:out value='${controlId }' />FileDiv" class="fileDiv">
		<input class="easyui-filebox" id="<c:out value='${controlId }'/>File" name="<c:out value='${controlId }'/>File" data-options="prompt:'请选择文件...'" style="width:60%">
		
		<div class="uploadBtnDiv inlineSet">
			<input class="upLoadBtn" id="<c:out value='${controlId }'/>Btn" type="button" />
		</div>
				
	</div>
	<div>
			<div id="<c:out value='${controlId }'/>UploadStatus" style="display: none">
				<img style="vertical-align:middle" src='<c:url value="/images/ajaxLoader.gif"/>'>正在上传文件，请稍等......<!-- <span id="uploadPercent"></span> -->
			</div>
    	    <div>
           		<div class="box20 leftFloat" id="<c:out value='${controlId }'/>Bar" <c:if test="${empty synAttachListSize || synAttachListSize<=1 }">style="display: none"</c:if>>
	             		<a title="点击收缩附件显示隐藏" href="javascript:void(0)"><div id="<c:out value='${controlId }'/>ShowDiv" class="inlineSet passwordbox-open innerBox"></div></a>  
	            </div> 
	            <div class="leftFloat">
	            	<ol id="<c:out value='${controlId }'/>FileList" class="fileList">
	            		<c:forEach var="docFileList" items="${synAttachList}" varStatus="eachInfo">
	            			<li class="oldFile" synAttachId="<c:out value='${docFileList.attachId}'/>" updateId="<c:out value='${docFileList.attachId}'/>">
	            				<!--查看链接  -->
	            				<a href="javascript:void(0)" onclick="<c:out value="${controlId }" />CheckDocAttach(this,'<c:out value="${docFileList.attachId }" />','<c:out value="${docFileList.suffixName }" />','<c:out value="${docFileList.attachName }" />','<c:out value="${docFileList.docId }" />')"><c:out value='${docFileList.attachName}${docFileList.suffixName }'/></a>
	            				
	            				<!--替换按钮  -->
	            				<a class="updateAttach pointer attachImg" <c:if test="${delFlag!=1&&(personFlag!=1||(personFlag==1&&docFileList.personCode!=attPersonCode)) }" > style="display: none;" </c:if> onclick="<c:out value="${controlId }" />updateFileFt(this)"></a>
	            				
	            				<!--删除按钮  -->
	            				<a class="delAttach pointer attachImg" <c:if test="${updateFlag!=1&&(personFlag!=1||(personFlag==1&&docFileList.personCode!=attPersonCode)) }" > style="display: none;" </c:if> onclick="<c:out value='${controlId }' />DelFileFt(this)"></a>
	            				
	            				<!--下载按钮  -->
	            				<a class="downloadAttach pointer attachImg" onclick="<c:out value="${controlId }" />DownloadDocAttach(this,'<c:out value="${docFileList.attachId }" />','<c:out value="${docFileList.suffixName }" />','<c:out value="${docFileList.attachName }" />')"></a>
	            			</li>
	            		</c:forEach>
	            	</ol>
		   	 	</div>
			</div>
		</div>
		
		<div id="<c:out value='${controlId }' />ReplaceDiv">
			<input type="hidden" id="<c:out value='${controlId }' />ReplaceId"  />
				<table class="inputTable" cellpadding="0" cellspacing="0">
		<caption>替换附件</caption>
		<tr>
			<td class="staticTd" style="width: 200px;">文件：</td>
			<td class="dynamicTd" style="width: 600px;"><input  id="<c:out value='${controlId }' />templateFile" name="<c:out value='${controlId }' />templateFile" /></td>
		</tr>
		</table>
		</div>
		<script type="text/javascript">
		<%@ include file="/pages/jsp/commom/synAttachForChange.js"%>
		</script>
</div>
</body>
</html>